package com.tiandang.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import tiandang.core.response.CommonReturnType;

@RestController
@RequestMapping("/front")
public class HelloController {

  @RequestMapping("/hello")
  public String hello() {
    return "Hello front";
  }

  @RequestMapping("/exception")
  public Object testException() {
    int i = 3 / 0;
    return CommonReturnType.success();
  }
}
